@option style:legacy, short_colors:yes, reverse_colors:yes;
@function percent-width(
  $t,
  $c
) {
  $perc: ($t / $c) * 100%;
  @return $perc;
}

a {
  width: percent-width(12, 80);
}